#ifndef IO_MEM_IOCTL_H
#define IO_MEM_IOCTL_H

#define IO_MEM_NAME          	"io_mem"
#define IO_MEM_NODE		"/dev/io_mem"
#define IO_MEM_MINOR      	129

struct mem_info {
        unsigned long addr;
        unsigned long size;
};

struct io_mem_info {
	struct mem_info user;
	int error;
};

struct mem_req {
        unsigned int id;
        struct mem_info info;
};

#define MAGIC_NUM       	'm'
#define GET_RAM_DATA		_IOWR(MAGIC_NUM, 0, struct mem_req)
#define REG_PWR_DOWN		_IOR(MAGIC_NUM, 6, pid_t)

#endif
